-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the BulkEmailFlag __str__ function to avoid infinite recursion #33901
Update the BulkEmailFlag __str__ function to avoid infinite recursion #33901
Conversation
Thanks for the pull request, @Anas12091101! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Hi @Anas12091101! Thank you for this contribution! Please let me know if you have any questions regarding submitting a CLA form. |
@Anas12091101 I notice there are some commit-lint failures. Please note that we use conventional commits across Open edX projects. You can read about the details here. Can you please amend your commit messages to follow our standard? |
HI @Anas12091101! I'm just following up to see if you plan to pursue this pull request? |
@Anas12091101 can you fix the commit messages on this? |
@pdpinch thanks for reminding. I will update the commit messages today. |
Hi @e0d, sorry I missed your comment. Will update the commit messages today |
4c07b3f
to
57f914a
Compare
@Anas12091101 there was a failed test, but it didn't seem related to your change. I re-ran it. |
Oh, and you need to rebase. |
57f914a
to
91cef23
Compare
Sorry @Anas12091101 it looks like it needs another rebase. |
91cef23
to
1e760a7
Compare
Done |
@Anas12091101 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
Description
This PR changes the str method of BulkEmailFlag to avoid the infinite recursion to occur due to a Network Request via
BulkEmailFlag.current()
method. For more information see the relevant Github Issue in the Supporting Information.Supporting information
Github Issue: #32300
Testing instructions
>>> from lms.djangoapps.bulk_email.models import BulkEmailFlag
>>> b = BulkEmailFlag.objects.create()
>>> str(b)
'BulkEmailFlag: enabled False, require_course_email_auth: True'